#ifndef _CRT_PTR_H_
#define _CRT_PTR_H_

#include <crt_core.hpp>
#include <crt_error.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef int (*funccb)(void* data, void* context);

typedef struct io_func_s io_func_t;

#pragma pack(push, 1)

struct io_func_s {
    funccb start;
    funccb work;
    funccb stop;
    funccb error;
};

#pragma pack(pop)

#ifdef __cplusplus
}
#endif

#endif
